home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-21 / dvxtec.zip / DOS2AT&T.TEC < prev    next >
Text File  |  1992-03-31  |  5KB  |  109 lines

  1. ID:F1 Porting DOS fonts to Interactive's X Window System
  2. Quarterdeck Technical Note #411
  3. by Kris Williams & Mark Welinder
  4.  
  5. How to port DOS fonts to the InterActive Unix X Window System
  6.  
  7. This document explains the procedures for porting the DESQview/X DOS
  8. fonts over to your Interactive workstation.  If you are or will be
  9. running DOS applications to be displayed on your Interactive
  10. workstation, it would be more aesthetically correct to use the fixed DOS
  11. fonts which where provided with DESQview/X.
  12.  
  13. To follow the steps covered in this document you will first need to have
  14. installed DESQview/X, and configured your TCP/IP networking software on
  15. both Interactive workstation, and the DOS DESQview/X PC.  It is only
  16. necessary to copy the font files to the Interactive workstation once.
  17.  
  18. THE PROCEDURE 
  19.  
  20. Is the X Window System configured on your Interactive workstation?  You
  21. will need to determine whether or not the X Window System is installed
  22. on your Interactive workstation before continuing with this document.
  23.  
  24. Have you installed DESQview/X on your DOS PC?  It is necessary to have
  25. DESQview/X installed on the DOS machine before continuing with this
  26. document.  You may determine this by looking in the \DVX subdirectory
  27. for the file DESQVIEW.DVO. If this file exists, DESQview/X is installed,
  28. and you may continue.  If not you will need to reference you DESQview/X
  29. installation guide for before continuing.
  30.  
  31. CONVERTING THE FONT DESCRIPTION FILES
  32.  
  33. Before moving the PC fonts over to the Interactive workstation, you will
  34. need to convert the .bdf font files to .snf font files.  This would be
  35. done by typeing the following series of commands:
  36.  
  37.    cd \DVX\BDF <─┘
  38.    ..\bdftosnf pc8x8.bdf > pc8x8.snf
  39.    ..\bdftosnf pc8x14.bdf > pc8x14.snf
  40.    ..\bdftosnf pc8x16.bdf > pc8x16.snf
  41.  
  42. TRANSFERING THE FONT DEFINITION FILES
  43.  
  44. If you haven't yet configured FTP's PCTCP software you'll need to
  45. reference the green PCTCP manual before continuing with this document.
  46.  
  47. You will need to switch to the \FTP subdirectory on the DOS machine
  48. where the PCTCP software is configured.  This may be done with the
  49. following command:
  50.  
  51.     C:\> cd \ftp <─┘
  52.  
  53. Then we'll use the FTP (File Transfere Protocol) utility to move the
  54. font description files up to the Interactive workstation.  This can be
  55. done with the following commands:
  56.  
  57.     C:\FTP> ftp <─┘
  58.     ftp> login: <username> <─┘
  59.     ftp> password: <password> <─┘
  60.   ftp> mput \DVX\BDF\pc*.snf <─┘
  61.     ftp> quit <─┘
  62.  
  63. In the above command <username> would be your username on the
  64. Interactive workstation, and <password> is the password required for
  65. <username> to successfully log on to the Interactive workstation.  After
  66. these commands are performed, the font description files are ready to be
  67. aliased, and used by the X Window System on the Interactive workstation.
  68.  
  69. ALIASING THE FONTS
  70.  
  71. Interactive's X Window System lets you assign aliases to fonts so that
  72. you can refer to a font without having to type it's full name.  To
  73. create a font alias, follow the following steps:
  74.  
  75. 1.  Log into the system as root.
  76.  
  77. 2.  Edit the file named fonts.dir.  Usually, this directory is called
  78.     either 75dpi, 100dpi or misc in the /usr/lib/X11/fonts subdirectory.
  79.     This directory must be in the search path.
  80.  
  81. 3.  Edit fonts.dir so that it contains at least one line with the
  82.     following format:
  83.  
  84.     aliasname   fontname
  85.  
  86.     In this line, aliasname is the name that is used to reference the
  87.     font, and fontname is the fullname of the font.  So, to add the pc
  88.     fonts to this font directory, you will need to append the following
  89.     lines to the fonts.dir file:
  90.  
  91. pc8x8.snf   -quarterdeck-fixed-bold-r-normal--8-80-75-75-c-80-iso8859-1
  92. pc8x14.snf  -quarterdeck-fixed-bold-r-normal--14-140-75-75-c-80-iso8859-1
  93. pc8x16.snf  -quarterdeck-fixed-bold-r-normal--16-160-75-75-c-80-iso8859-1
  94.  
  95. 4.  If you performed step 3 from an X session, you must reset the
  96.     server's font search path.  You can do this either by stopping the
  97.     Interactive X Window System and then restarting it, or by entering the
  98.     following command from and odtterm window:
  99.  
  100.    xset fp rehash
  101.  
  102.    If you performed step 3 directly from the operating system command line
  103.    (and the X Window System was not running), there is no need to reset the
  104.    server. The changes that you made to the fonts.dir file are incorporated
  105.    automatically the next time you start the X Window System.
  106.  
  107.             Copyright (C) 1991 by Quarterdeck Office Systems
  108.                  * * *    E N D   O F   F I L E    * * *
  109.